class Student(object):
    count = 0
    def __init__(self,name):
        self.name = name
        #count = count + 1  函数里无法直接引用类中定义的变量
        # end_time = time
        Student.count += 1
        print(Student.count)
        self.test()
    def test(self):
        print('test')
xh = Student('小红')
print(xh.name)
# print(Student.count)
xl = Student('小绿')
#test() 类中定义的函数，需要加上self
